package com.hj.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author hj
 * @Date 2023/5/5
 * @Description:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "spring.data.redis")
public class RedissonProperties {

    private String host;

    private String port;

    private String password;

    private Integer database;

    public String  redisUrl(){
        return String.format("redis://%s:%s",host,port);
    }


}
